package cn.parus.entity;

/**
 * @Author: Axel
 * @Description: TODO 用户基础DTO
 **/
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.sql.Timestamp;

@Data
@TableName("user")
public class User {
    @TableId(value = "user_id", type = IdType.ASSIGN_UUID)
    private String userId;

    private String username;
    private String password;
    private String email;
    private String phone;

    @TableField("created_at")
    private Timestamp createdAt;

    @TableField("last_login")
    private Timestamp lastLogin;

    @TableField("storage_quota")
    private Long storageQuota;

    @TableField("used_storage")
    private Long usedStorage;

    @TableField("avatar")
    private String avatar;

    @TableField("real_name")
    private String realName;
}